import React from 'react'
// ===================================================================== Temp
import TableModal from '#cpt/temp/TableModal'
// ===================================================================== global declare
const { $fn } = window
// ===================================================================== component
class Index extends React.Component{
	state = {
		data: [],
		pag:{}
	}
	
	model = {}
	
	open = uuid => {
		this.modal.open()
		this.query = { uuid }
		this.fetch()
	}
	
	// paging
	fetch = () => $fn.fetch.call(this,'ts-report-card/resultlog')
	
	// 表单
	cols = [
		{ title: '标本条码',			dataIndex: 'spec_code', 					...$fn.table.spec_code },
		{ title: '建议与解释', 		dataIndex: 'result_suggestion_content', 	width:150 },
		{ title: '结果', 			dataIndex: 'result', 						width:150 },
		{ title: '报告结果', 		dataIndex: 'result1', 						width:150 },
		{ title: '稀释倍数', 		dataIndex: 'dilution_multiple', 			width:150 },
		{ title: '单位', 			dataIndex: 'unit_val_name', 				width:80, align:'center' },
		{ title: '稀释倍数', 		dataIndex: 'company_name', 					width:80 },
		{ title: '标本类型', 		dataIndex: 'spec_type_name', 				width:80 },
		{ title: '项目名称', 		dataIndex: 'kind_name', 					width:150 },
		{ title: '操作人', 			dataIndex: 'operator_name', 				...$fn.table.name },
		{ title: '操作时间', 		dataIndex: 'operator_at', 					...$fn.table.time },
	]
	
	render(){
		return TableModal.call(this,{ title:'结果操作日志', width:'99%', height:'80%', noSubmit:true, table:{ width:1350 }})
	}
}

export default Index